﻿@{
    ViewBag.Title = "图书出版申请";
    Layout = "~/Views/Shared/_Main.cshtml";
}
@section head{
<link href="/Content/css/unicorn.main.css" rel="Stylesheet" />
}
<!-- main content -->
<div class="container">
    <div class="row">
        <div class="span12">
            <!-- navagation -->
            <ul class="breadcrumb">
                <li><a href="/Home">首页</a> <span class="divider">/</span></li>
                <li class="active">图书出版申请</li>
            </ul>
            <div class="center">
                <h3>
                    <a>图书出版申请</a></h3>
            </div>
            <hr />
            <div class="content">
                <form id="form" class="form-horizontal" method="post" action="/Home/PublishApply">
                <div class="control-group">
                    <label class="control-label">
                        书 名</label>
                    <div class="controls">
                        <input type="text" name="name" class="span6 {required:true}" placeholder="图书名称" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        作 者</label>
                    <div class="controls">
                        <input type="text" name="authors" class="span6 {required:true}" placeholder="作者" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        领 域</label>
                    <div class="controls">
                        <input type="text" name="field" class="span6 {required:true}" placeholder="专著、教材、教辅、作品、诗歌、小说、书画等" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        出书方式</label>
                    <div class="controls">
                        <select class="span6" name="Way">
                            <option value="0">出版社独资出书</option>
                            <option value="1">出版社合作出书</option>
                        </select>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        联系人</label>
                    <div class="controls">
                        <input type="text" name="contact" class="span6 {required:true}" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        联系电话</label>
                    <div class="controls">
                        <input type="text" name="phone" class="span6 {required:true}" placeholder="联系电话" />
                        <span class="help-block">请确保我们能通过此方式联系到您</span>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        联系邮箱</label>
                    <div class="controls">
                        <input type="text" name="mail" class="span6 {required:true,email:true}" placeholder="example@mail.com" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        图书介绍</label>
                    <div class="controls ">
                        <textarea class="span6 {required:true}" name="introduction" rows="5" placeholder="书籍简要介绍"></textarea>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <span class="text-info">我们将在收到您的申请后尽快与您取得联系！</span>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <button type="submit" class="btn btn-primary btn-large">
                            提交申请</button>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>
@section tail{
    <script type="text/javascript" src="/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/scripts/jquery.metadata.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#libook').addClass('active');
            $('#form').validate({
                errorClass: "help-inline",
                errorElement: "span",
                highlight: function (element, errorClass, validClass) {
                    $(element).parents('.control-group').addClass('error');
                },
                unhighlight: function (element, errorClass, validClass) {
                    $(element).parents('.control-group').removeClass('error');
                }
            });
        });
    </script>
}